home *** CD-ROM | disk | FTP | other *** search
/ Network Support Encyclopedia 13 / Network Support Encyclopedia (Novell Inc.)(1991).ISO / download / tdp2.txt < prev    next >
Text File  |  1992-06-01  |  5KB  |  118 lines

  1.                    NOVELL TECHNICAL DISCUSSION
  2.  
  3. (Note:  The origin of this information may be internal or external
  4. to Novell.  Novell makes every effort within its means to verify
  5. this information.  However, the information provided in this Novell
  6. Technical Discussion is FOR YOUR INFORMATION only.  Novell makes no
  7. explicit or implied claims to the validity of this information.)
  8.  
  9.           TITLE:  Printing and the Serial Interface
  10.    DOCUMENT ID#:  TD.P.2
  11.            DATE:  April 6, 1992
  12.         PRODUCT:  NetWare
  13. PRODUCT VERSION:  All
  14.      SUPERSEDES:  N/A
  15.  
  16.         SYMPTOM:  None
  17.  
  18. Serial printing on the Novell network has on occasion been a source
  19. of difficulty.  Much of this difficulty is overcome with an
  20. understanding of the serial handshaking scheme.  The purpose of
  21. this document is to improve that understanding.
  22.  
  23. Serial printers in the DOS world take advantage of the RS-232-C
  24. interface standard.  This interface was developed specifically for
  25. terminal to modem communications or DTE to DCE (Data Terminal
  26. Equipment to Data Communication Equipment).  As PC's and printers
  27. both consider themselves to be DTE, each have to be "tricked" into
  28. thinking that they are communicating with DCE on the other side.
  29. Now, if all printers did this in the same way, a standard cable
  30. could be used to interface all printers with all PC's and the world
  31. would be a happy place.  However, since the world is not perfect,
  32. and printer vendors have decided to implement handshaking in
  33. various ways, the following is the optimal cable pin-out. 
  34. Explanatory notes referring to the reference numbers in this
  35. diagram are listed below.
  36.  
  37.  
  38.                 PC                                Printer
  39.  
  40.           9 pin   25 pin                          25 pin
  41.  
  42.           --      1 (1)           FG              1
  43.  
  44.           3       2 (2) >DDDDDD?  TXD     ZDDDDD< 2
  45.                                @DDDDDDD?  3
  46.                           ZDDDDDDDDDDDDEDDY                
  47.           2       3 (3) <DY       RXD  @DDDDDDDD> 3
  48.  
  49.           7       4 (4) ^         RTS           ^ 4 (10) >?
  50.                                                           3
  51.           8       5 (5) <DDDD?    CTS             5 <DDDDD4
  52.                              CDDDDDDDDDDDDD?              3
  53.           6       6 (6) <DDDDY    DSR      3      6 <DDDDD4
  54.                                ZDDDDDDDDDDDED?            3
  55.           5       7 (7) DDDDDDDY  SG       3 @DDD 7 (7)   3
  56.                                            3              3
  57.           1       8 (8)  (NC)     DCD      3      8 <DDDDDY
  58.                                            3
  59.           4      20 (9) ^         DTR      @DDDD> 20 (11) 
  60.                                                   (Handshaking)
  61.  
  62.  
  63. (1) Frame Ground.  Not necessary and, in fact, may cause ground
  64. loop problems if PC and printer are connected to different power
  65. sources.
  66.  
  67. (2) Transmit Data (output).  The PC sends data to the printer via
  68. this pin.
  69.  
  70. (3) Receive Data (input).  The PC can receive data from the printer
  71. on this pin.  This is used for XON/XOFF (software) handshaking.  If
  72. XON/XOFF is used, the PC needs only pins 2, 3, and 7 to function
  73. properly.
  74.  
  75. (4) Request To Send (output).  This pin is brought high (^) and
  76. kept in that state. Some printers use this pin to enable an input
  77. on the printer.  The print server and rprinter, until version
  78. 1.22R, dropped this signal when no data was being sent to the
  79. printer.  This process has been the cause of many problems.
  80. Versions 1.22R and later were changed to hold this pin high at all
  81. times.  Our recommendation is to avoid the use of this pin.
  82.  
  83. (5) Clear To Send (input).  This is the pin we use for hardware
  84. handshaking.  If pin 5 is high, we send data to the printer.  If
  85. pin 5 is low, we stop sending data.  If pin 5 stays low for about
  86. 10 seconds, we report the "OFF LINE" condition.  It is necessary to
  87. connect the pin on the printer that the printer uses for signaling
  88. a "don't send" condition to the PC to this pin.  This is pin 20 for
  89. DTR handshaking but vendors commonly use other pins for their
  90. handshaking.  If hardware handshaking is being used, pins 2, 5, and
  91. 7 are the only pins we need to function properly.
  92.  
  93. (6) Data Set Ready (input).  We don't use this pin.  However, DOS
  94. needs both pins 5 and 6 to be high to send data to the printer, so
  95. the recommendation is to tie pins 5 and 6 together to provide DOS
  96. compatibility.
  97.  
  98. (7) Signal Ground.  This is needed to provide a reference for the
  99. signal levels.
  100.  
  101. (8) Data Carrier Detect (input).  Not used.  Should be not
  102. connected (NC).
  103.  
  104. (9) Data Terminal Ready (output).  See note four (4).
  105.  
  106. (10) When the printer is powered on, pin 4 on the printer is pulled
  107. high and kept high (^).  It can be used, therefore, to enable input
  108. pins that, on some printers, may be used to control the receive pin
  109. (pin 3) on the printer.  The recommendation is to tie this pin to
  110. pins 5, 6, and 8.  This may not work on all printers.
  111.  
  112. (11) Pin 20 on the printer is often used for the handshaking
  113. signal.  If the printer supports DTR handshaking it should be using
  114. pin 20.  Many printers use other pins; pins 11, and 19 being very
  115. popular.
  116.  
  117. This pin-out is not the panacea for all serial printing handshaking
  118. problems, but it should work as the interface for most printers.